package cn.ssq.service.impl;

import cn.ssq.dao.SampleInfoMapper;
import cn.ssq.dao.SampleToxinInfoMapper;
import cn.ssq.dao.SampleToxinMapper;
import cn.ssq.domain.SampleToxinInfo;
import cn.ssq.service.SampleToxinInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SampleToxinInfoServiceImpl implements SampleToxinInfoService {
    @Autowired
    private SampleToxinInfoMapper sampleToxinInfoMapper;
    @Autowired
    private SampleToxinMapper sampleToxinMapper;

    @Autowired
    private SampleInfoMapper sampleInfoMapper;

    @Override
    public List<SampleToxinInfo> findSampleToxinInfo() {
        return sampleToxinInfoMapper.selectAll();
    }

    @Override
    public Integer findToxinBynName(String toxinName) {
        return sampleToxinInfoMapper.selectIdByName(toxinName);
    }

    @Override
    public void insertitno(SampleToxinInfo sampleToxinInfo) {

    }

    @Override
    public String findToxinById(Integer toxinTyoe) {
        return sampleToxinInfoMapper.selectIdBy0Id(toxinTyoe);
    }


}
